Loading TOC...

GET /manage/v2/servers/{id|name}?view=package

Summary

This resource address returns configuration details about the named App Server in a format suitable for use with the /manage/v2/packages interfaces. The server can be identifed either by id or name.

URL Parameters
group-id The id or name of the group to which the App Server belongs. This parameter is required.
format The format of the returned data. Can be either html, json, or xml (default). This value overrides the Accept header if both are present.
modules Whether or not to include a manifest of the modules database for the App Server in the results, if one exists. It is an error to request a modules database manifest for an App Server that uses the filesystem for modules. Default: false.
Request Headers
Accept The expected MIME type of the response. If the format parameter is present, it takes precedence over the Accept header.
Response Headers
Content-type The MIME type of the data in the response body. Depending upon the value of the format parameter or Accept header, one of application/xml, application/json, or text/html.

Response

Upon success, MarkLogic Server returns status code 200 (OK), and the response body contains the requested data.

Required Privileges

This operation requires the manage-user role, or the following privilege:

http://marklogic.com/xdmp/privileges/manage

Usage Notes

You can request a package view as HTML, XML, or JSON, but only the XML and JSON formats can be used as input to the /manage/v2/packages interfaces, such as POST /manage/v2/packages/{pkgname}. The structure of the data in the response body depends on the type of App Server (HTTP, XDBC, ODBC, etc.).

Example


http://localhost:8002/manage/v2/servers/MyServer?group-id=Default&view=package

==> Returns the package representation of the App Server MyServer 
    in the Default group.
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.